package com.register.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.register.pojo.QRDepot;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

@Mapper
public interface QRDepotMapper extends BaseMapper<QRDepot> {

    @Select("select * " +
            "from qr_user_and_depot a inner join qr_depot b on a.depotid = b.id" +
            " where userid = #{id}")
    List<Map<String,Object>> getDepotById(Long id);
}
